package fr.demos.cinepantin.util;

import javax.servlet.http.HttpServletRequest;
/**
 * 
 * @author CQP-DNT
 *
 */
public class Configuration {

	// Chemin upload Image
	public static String DOSSIER_UPLOAD_IMAGE = "cinemapantin/imgUpload/";
	
	// Servlet permettant d'afficher l'image sous forme de flux
	public static String SERVLET_AFFICHER_IMAGE = "AfficherImage";

	public static String getAbsolutePathDossierUploadImage(HttpServletRequest request) {
		String home = System.getProperty("user.home");
		return home + "/" + DOSSIER_UPLOAD_IMAGE;
		// return request.getServletContext().getRealPath(DOSSIER_UPLOAD_IMAGE) + "/";
	}
}
